import { createI18n } from 'vue-i18n';
import zhLocale from './zh'
import enLocale from './en'
const messages = {
  en: {
    ...enLocale
  },
  zh: {
    ...zhLocale
  },
  es: {

  },
  ja: {

  }
}
const i18n = createI18n({
  legacy: false,
  locale: localStorage.getItem('i18nLocale') || 'zh', // set default locale
  fallbackLocale: 'zh', // set fallback locale
  messages, // set locale messages
});

export default i18n;